package cn.stylefeng.guns.dao.entity;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 审批节点表
 * </p>
 *
 * @author quspacedraon
 * @since 2024-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("audit_node")
@ApiModel(value = "AuditNode对象", description = "审批节点表")
public class AuditNode extends BusinessBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "audit_node_id", type = IdType.ASSIGN_ID)
    private String auditNodeId;

    @ApiModelProperty(value = "节点序列 节点1节点2节点3")
    private Integer nodeOrder;

    @ApiModelProperty(value = "模板CAV 核销审批流")
    private String template;

    @ApiModelProperty(value = "节点类型 role关联角色 account 关联账号")
    private String type;

    @ApiModelProperty(value = "type=role 角色id type=account userid")
    private Long approverId;


    @ApiModelProperty(value = "删除标记：Y-已删除，N-未删除")
    @TableField(
            value = "del_flag",
            fill = FieldFill.INSERT
    )
    @ChineseDescription("删除标记（Y-已删除，N-未删除）")
    @TableLogic(value = "N", delval = "Y")
    private String delFlag;

}
